package com.lgk.domain;

import java.util.Date;
import java.util.List;

public class User {

    private Integer id;

    private String password;

    private String name;

    private String tell;

    private Date time;

    private List<Role> roleList;

    public User() {
    }

    public User(Integer id, String password, String name, String tell, Date time) {
        this.id = id;
        this.password = password;
        this.name = name;
        this.tell = tell;
        this.time = time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", tell='" + tell + '\'' +
                ", time=" + time +
                ", roleList=" + roleList +
                '}';
    }
}
